
x = 10
print(x)
print("x=%6d" % x)

y = 10.5
print(y)
print("y=%6.2f" % y)

z = 'python'
print(z)
print("z=%6s" % z)

# 如果空间格数不足，也会完整显示
print('-'*100)
print("x=%2d" % x)
print("y=%3.2f" % y)
print("z=%3s" % z)
